import 'dart:ui';

class FontWeightUtil {

  FontWeightUtil._();

  static const FontWeight pingFangLight = FontWeight.w200;

  static const FontWeight pingFangRegular = FontWeight.w400;

  static const FontWeight pingFangMedium = FontWeight.w600;

  static const FontWeight pingFangBold = FontWeight.w900;
  
  /// 获取支持中文的字体族
  static String get chineseFontFamily => 'Noto Sans SC';
  
  /// 创建支持中文的TextStyle
  static TextStyle createChineseTextStyle({
    double? fontSize,
    FontWeight? fontWeight,
    Color? color,
    double? height,
  }) {
    return TextStyle(
      fontFamily: chineseFontFamily,
      fontSize: fontSize,
      fontWeight: fontWeight,
      color: color,
      height: height,
    );
  }
}
